<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="25%">反馈内容</th>
            <th class="text-center" width="15%">反馈创建人</th>
            <th class="text-center" width="15%">联系方式</th>
            <th class="text-center" width="15%">反馈时间</th>
            <th class="text-center" width="10%">状态</th>
            <th class="text-center" width="15%">操作</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody id="tbodyFeedBack">
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="25%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="7" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="feedback:${dataMap['list']}" th:attr="data-id=${feedback['id']}">
                <td class="text-center">
                    <input type="checkbox" class="i-checks" th:text="${feedback['id']}" th:value="${feedback['id']}">
                </td>
                <td class="text-center">
                    <span th:if="${feedback['context']==null}">—</span>
                    <span th:if="!${feedback['context']==null}" th:text="${feedback['context']}"></span>
                </td>
                <td class="text-center">
                    <span th:if="${#maps.isEmpty(feedback['user'])}">—</span>
                    <span th:if="!${#maps.isEmpty(feedback['user'])}" th:text="${#strings.length(feedback['user']['nickname'])>0?feedback['user']['nickname']:feedback['user']['realName']}"></span>
                </td>
                <td class="text-center">
                    <span th:if="${feedback['feedBackEmail']!=null}" th:text="${feedback['feedBackEmail']}"></span>
                    <span th:if="${feedback['feedBackEmail']==null}">—</span>
                </td>
                <td class="text-center">
                    <span calss="pie" th:if="${feedback['createTime']}!=null" th:text="${#strings.substring(feedback['createTime'],0,16)}"></span>
                    <span class="pie" th:if="${feedback['createTime']}==null">—</span>
                </td>
                <td class="text-center" data-status>
                    <span th:if="${feedback['status']}==1" class="label label-danger">未回复</span>
                    <span th:if="${feedback['status']}==2" class="label label-info"  >已回复</span>
                </td>
                <td class="text-center">
                    <!--<input type="hidden" id="feedBack_replyContext_${feedBack.id}" value="${feedBack.replyContext}"/>-->
                    <a href="javascript:void (0);" class="c-master fs14 ml5 infoFeedBack"   th:attr="data-id=${feedback['id']}" data-toggle="tooltip" data-placement="bottom" data-original-title="查看"><i class="fa fa-eye"></i></a>
                    <a href="javascript:void (0);" class="c-master fs14 ml5 updateFeedBack" th:attr="data-id=${feedback['id']}" data-toggle="tooltip" data-placement="bottom" data-original-title="回复"><i class="fa fa-edit"></i></a>
                    <a href="javascript:void (0);" class="c-master fs14 ml5 deleteFeedBack" th:attr="data-id=${feedback['id']}" data-toggle="tooltip" data-placement="bottom" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
